package com.vader.admin.entity.DO;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * 用户积分表(BaseUserIntegration)实体类
 *
 * @author Vader
 * @since 2021-10-06 12:46:39
 */
public class BaseUserIntegration implements Serializable {
    private static final long serialVersionUID = -72986976721370957L;
    /**
     * 用户表主键id
     */
    private Long uid;
    /**
     * 龙珠数量
     */
    private Integer dragonPearl;
    /**
     * 正常龙珠碎片数量
     */
    private Integer pearlFragment;
    /**
     * 可赠送龙珠碎片数量
     */
    private Integer giftPearlFragment;
    /**
     * 术值
     */
    private Long integration;

    private Date createTime;

    private Date updateTime;

    public static BaseUserIntegration init() {
        BaseUserIntegration baseUserIntegration = new BaseUserIntegration();
        baseUserIntegration.setIntegration(0L);
        baseUserIntegration.setDragonPearl(0);
        baseUserIntegration.setPearlFragment(0);
        baseUserIntegration.setGiftPearlFragment(0);
        baseUserIntegration.setCreateTime(java.sql.Date.valueOf(LocalDate.now()));
        baseUserIntegration.setUpdateTime(java.sql.Date.valueOf(LocalDate.now()));
        return baseUserIntegration;
    }


    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Integer getDragonPearl() {
        return dragonPearl;
    }

    public void setDragonPearl(Integer dragonPearl) {
        this.dragonPearl = dragonPearl;
    }

    public Integer getPearlFragment() {
        return pearlFragment;
    }

    public void setPearlFragment(Integer pearlFragment) {
        this.pearlFragment = pearlFragment;
    }

    public Integer getGiftPearlFragment() {
        return giftPearlFragment;
    }

    public void setGiftPearlFragment(Integer giftPearlFragment) {
        this.giftPearlFragment = giftPearlFragment;
    }

    public Long getIntegration() {
        return integration;
    }

    public void setIntegration(Long integration) {
        this.integration = integration;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

}

